package com.findFish.fish.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.fish.mapper.FishSpeciesMapper;
import com.findFish.fish.domain.FishSpecies;
import com.findFish.fish.service.IFishSpeciesService;

/**
 * 鱼种信息Service业务层处理
 * 
 * @author admin
 * @date 2025-04-01
 */
@Service
public class FishSpeciesServiceImpl implements IFishSpeciesService 
{
    @Autowired
    private FishSpeciesMapper fishSpeciesMapper;

    /**
     * 查询鱼种信息
     * 
     * @param id 鱼种信息主键
     * @return 鱼种信息
     */
    @Override
    public FishSpecies selectFishSpeciesById(Long id)
    {
        return fishSpeciesMapper.selectFishSpeciesById(id);
    }

    /**
     * 查询鱼种信息列表
     * 
     * @param fishSpecies 鱼种信息
     * @return 鱼种信息
     */
    @Override
    public List<FishSpecies> selectFishSpeciesList(FishSpecies fishSpecies)
    {
        return fishSpeciesMapper.selectFishSpeciesList(fishSpecies);
    }

    /**
     * 新增鱼种信息
     * 
     * @param fishSpecies 鱼种信息
     * @return 结果
     */
    @Override
    public int insertFishSpecies(FishSpecies fishSpecies)
    {
        return fishSpeciesMapper.insertFishSpecies(fishSpecies);
    }

    /**
     * 修改鱼种信息
     * 
     * @param fishSpecies 鱼种信息
     * @return 结果
     */
    @Override
    public int updateFishSpecies(FishSpecies fishSpecies)
    {
        return fishSpeciesMapper.updateFishSpecies(fishSpecies);
    }

    /**
     * 批量删除鱼种信息
     * 
     * @param ids 需要删除的鱼种信息主键
     * @return 结果
     */
    @Override
    public int deleteFishSpeciesByIds(Long[] ids)
    {
        return fishSpeciesMapper.deleteFishSpeciesByIds(ids);
    }

    /**
     * 删除鱼种信息信息
     * 
     * @param id 鱼种信息主键
     * @return 结果
     */
    @Override
    public int deleteFishSpeciesById(Long id)
    {
        return fishSpeciesMapper.deleteFishSpeciesById(id);
    }
}
